<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.lbl.bean.User" %>
<%@ page import="com.lbl.bean.Birthday" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    ArrayList<User> list2= new ArrayList<User>();
    list2.add(new User("liuyan1",33,"female",new Birthday(1991,12,21)));
    list2.add(new User("liuyan2",34,"female",new Birthday(1992,12,21)));
    list2.add(new User("liuyan3",38,"female",new Birthday(1993,12,21)));
    request.setAttribute("list2", list2);
%>
<c:forEach items="${list2}" var="user">
    ${user.name} ----${user.birthday.year}<br/>
</c:forEach>

</body>
</html>
